package lab02;

public class Test03 {
    public static void main(String[] args) {

        printStudent();
    }

        public static void printStudent () {
            //属性

            int computer = 80;
            int math = 90;
            int English = 100;
            int sum = 0;
            int avergae = 0;
            int highest = 0;
            int loeest = 0;
            //行为,方法
            sum = sum + computer + math + English;
            System.out.println(" 计算机="+computer+"\n"+" 数学="+math+"\n"+" 英语="+English);
            System.out.println("总分="+sum);
            System.out.println("平均成绩= "+sum/3+"\n"+" 最高分= "+English+"\n"+" 最低分= "+computer);
        }
    }

